import request from '@/utils/request'
// 所有设计工具
export function getAllList() {
  return request({
    url: '/api/designtool',
    method: 'get'
  })
}

export function Add(obj) {
  return request({
    url: '/api/designtool',
    method: 'post',
    data: obj
  })
}

export function remove(id) {
  return request({
    url: '/api/designtool/' + id,
    method: 'delete'
  })
}

// 设置用户设计工具
export function setTools(id, toolIds) {
  return request({
    url: '/api/User/' + id + '/DesignTools',
    method: 'post',
    data: toolIds
  })
}
